<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input type="range" class="wp" name="1"><span>0</span><input type="range" class="wp" name="2"><span>0</span><input
        type="range" class="wp" name="3"><span>0</span>
</body>
<script>
    var wp = document.getElementsByClassName('wp')

    for (i = 0; i < wp.length; i++) {
        var wpp = wp[i]
        wpp.oninput = function () {
            console.log(this)
            var val = this.value
            this.nextElementSibling.innerHTML = val
            // this.nextElementSibling.textContent = val
        }
    }
</script>

</html>